-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
O3-1157: Added field to search and select patient identifiers from implementer tools #380
O3-1157: Added field to search and select patient identifiers from implementer tools #380
Conversation
File size impactMerging O3-1157-configurable-identifiers into master impact files as follow: @openmrs/esm-devtools-app (+0.04%)
@openmrs/esm-implementer-tools-app (+0.48%)
@openmrs/esm-login-app (+0.01%)
@openmrs/esm-offline-tools-app (+0.01%)
@openmrs/esm-primary-navigation-app (+0.01%)
@openmrs/esm-app-shell (+0.01%)
|
File size impactMerging O3-1157-configurable-identifiers into master impact files as follow: @openmrs/esm-devtools-app (+0.04%)
@openmrs/esm-implementer-tools-app (+0.48%)
@openmrs/esm-login-app (+0.01%)
@openmrs/esm-offline-tools-app (+0.01%)
@openmrs/esm-primary-navigation-app (+0.01%)
@openmrs/esm-app-shell (+0.01%)
|
|
||
const filteredResults: Array<PatientIdentifierType> | undefined = | ||
useMemo(() => { | ||
if (!isLoading && searchTerm && searchTerm !== "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"" is considered false, so searchTerm
and searchTerm !== ""
is redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, thanks, I'll just update it.
@@ -0,0 +1,107 @@ | |||
import React, { useState, useMemo } from "react"; | |||
import uniqueId from "lodash-es/uniqueId"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the UUID library that we use site-wide?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this is just for generating a unique id for the Input field.
The site-wide application is UUID version 4, afaik.
Requirements
For changes to apps
If applicable
Summary
I have added a search field for searching and selecting a patient-identifier-type's UUID, similar to searching a concept UUID/ person-attribute-type UUID. Along with that, I've added the UUID validator for the field.
Screenshots
Related Issue
https://issues.openmrs.org/browse/O3-1157
Other